package com.ruoyi.warehouse.service.impl;

import java.util.List;

import com.ruoyi.warehouse.domain.*;
import com.ruoyi.warehouse.mapper.StatisticalAnalysisMapper;
import com.ruoyi.warehouse.service.StatisticalAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import com.ruoyi.common.core.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional;
import com.ruoyi.warehouse.mapper.LlrkIncomingMaterialStorageMapper;
import com.ruoyi.warehouse.service.ILlrkIncomingMaterialStorageService;

import javax.annotation.Resource;

/**
 * 来料统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-25
 */
@Service
public class StatisticalAnalysisServiceImpl implements StatisticalAnalysisService
{
    @Resource
    private StatisticalAnalysisMapper statisticalAnalysisMapper;

    /**
     * 查询产量统计列表
     *
     * @param scgdProductionWorkOrder 来料统计
     * @return 来料统计
     */
    @Override
    public List<BgdWorkOrderForm> selectCltjList(ScgdProductionWorkOrder scgdProductionWorkOrder)
    {
        return statisticalAnalysisMapper.selectCltjList(scgdProductionWorkOrder);
    }

    /**
     * 查询报工统计列表
     *
     * @param bgdWorkOrderForm 来料统计
     * @return 来料统计
     */
    @Override
    public List<BgdWorkOrderForm> selectBgtjList(BgdWorkOrderForm bgdWorkOrderForm) {
        return statisticalAnalysisMapper.selectBgtjList(bgdWorkOrderForm);
    }

    /**
     * 查询报工统计列表
     *
     * @param scllProductionMaterialRequisition 来料统计
     * @return 来料统计集合
     */
    @Override
    public List<ScllMaterialRequiredRescord> selectLltjList(ScllProductionMaterialRequisition scllProductionMaterialRequisition){
        return statisticalAnalysisMapper.selectLltjList(scllProductionMaterialRequisition);
    }



    /**
     * 查询来料统计列表
     * 
     * @param llrkIncomingMaterialStorage 来料统计
     * @return 来料统计
     */
    @Override
    public List<LlslIncomingMaterials> selectLlrkIncomingMaterialStorageList(LlrkIncomingMaterialStorage llrkIncomingMaterialStorage)
    {
        return statisticalAnalysisMapper.selectLlslIncomingMaterialsList(llrkIncomingMaterialStorage);
    }


    /**
     * 查询出货统计列表
     *
     * @param cpProduct 出货统计
     * @return 出货统计集合
     */
    @Override
    public List<FhslQuantityShipped> selectFhslQuantityShippedList(CpProduct cpProduct){
        return  statisticalAnalysisMapper.selectFhslQuantityShippedList(cpProduct);
    }
}
